import React from 'react';
import { Table } from 'antd';
import { tableLocale } from '@/tool/components/PageEmpty';
import { getPathTableColumnsConfig } from '../helper';
import styles from './index.less';

const PathTableHistory = ({ records }) => {
  const columnsConfig = getPathTableColumnsConfig();
  return (
    <div className={styles.container}>
      <Table
        columns={columnsConfig}
        dataSource={records}
        locale={tableLocale}
        pagination={false}
        bordered
        size="small"
      />
    </div>
  );
};

export default PathTableHistory;
